import { Http } from '@/common/api'
// 列表
export const listUrl = '/srm/dict/page'

export const apiPostDictPageApi = async (data) => Http.post('/srm/dict/page', data)
// 新增
export const apiPostDictAdd = async (parmas) => Http.post('/srm/dict/add', parmas)
export const apiPutDictUpdate = async (parmas) => Http.put('/srm/dict/update', parmas)
export const apiDeleteDictBathDelete = async (id) => Http.delete(`/srm/dict/batch/delete/${id}`)
export const apiGetDictFindById = async (id) => Http.get(`/srm/dict/findById/${id}`)

export const apiPutEnableDict = async (id) => Http.put(`/srm/dict/enable?id=${id}`)

export const apiPutDisableDict = async (id) => Http.put(`/srm/dict/disable?id=${id}`)
